import request from '@/utils/request'

export function listtsWarring(query) {
  return request({
    url: '/tsWarring/list',
    method: 'get',
    params: query
  })
}

export function createtsWarring(data) {
  return request({
    url: '/tsWarring/create',
    method: 'post',
    data
  })
}

export function readtsWarring(data) {
  return request({
    url: '/tsWarring/get/' + data.fwarringno,
    method: 'get'
  })
}

export function updatetsWarring(data) {
  return request({
    url: '/tsWarring/update',
    method: 'post',
    data
  })
}

export function deletetsWarring(data) {
  return request({
    url: '/tsWarring/delete/' + data.id,
    method: 'delete'
  })
}
